+2008-08-05 Tor Lillqvist <tml@novell.com>
+
+ * gdk/gdkrgb.c: Cast pointers to guintptr, not unsigned long,
+ before doing bit tests on them.
+
2008-08-05 Tor Lillqvist <tml@novell.com>
* configure.in: Define GDK_NATIVE_WINDOW_POINTER on 32-bit
{
bp2 = bptr;
obptr = obuf;
- if (((unsigned long)obuf | (unsigned long) bp2) & 3)
+ if (((guintptr)obuf | (guintptr) bp2) & 3)
{
for (x = 0; x < width; x++)
{
{
bp2 = bptr;
obptr = obuf;
- if (((unsigned long)obuf | (unsigned long) bp2) & 3)
+ if (((guintptr)obuf | (guintptr) bp2) & 3)
{
for (x = 0; x < width; x++)
{
{
bp2 = bptr;
obptr = obuf;
- if (((unsigned long)obuf | (unsigned long) bp2) & 3)
+ if (((guintptr)obuf | (guintptr) bp2) & 3)
{
for (x = 0; x < width; x++)
{
const guint32 *dmp = DM_565 + ((y & (DM_HEIGHT - 1)) << DM_WIDTH_SHIFT);
bp2 = bptr;
obptr = obuf;
- if (((unsigned long)obuf | (unsigned long) bp2) & 3)
+ if (((guintptr)obuf | (guintptr) bp2) & 3)
{
for (x = x_align; x < width; x++)
{
{
bp2 = bptr;
obptr = obuf;
- if (((unsigned long)obuf | (unsigned long) bp2) & 3)
+ if (((guintptr)obuf | (guintptr) bp2) & 3)
{
for (x = 0; x < width; x++)
{